package cn.com.headfree.deptuser.dao.impl;

import cn.com.headfree.deptuser.dao.TOrgDeptDao;
import cn.com.headfree.entity.TOrgDept;
import com.gta.edu.sdk.base.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("tOrgDeptDao")
public class TOrgDeptDaoImpl extends BaseDaoImpl<TOrgDept> implements TOrgDeptDao {


	@Override
	public List<TOrgDept> findAllByPId() {
		String sql = "select * from t_org_dept where path like '%"+10342674+"%' and id <> '20130649' and id <> '20130650' order by sort";
		return this.findAllBySQL(TOrgDept.class, sql, null, false, null);
	}
}
